A social media user's question about the legality of living on a boat in India has gone viral, sparking a discussion.