The Supreme Court is hearing an appeal against a law that bans the video-sharing app in the country unless it is sold.