Totally fine. The sentence has no subject but is apparently abbreviated as one of the features of Japanese language: (あなたは) whyをにほんごで…
If you want to make it sound more natural, you can replace を after 'why' with 'は': Whyはにほんごで… In this way, 'why' turns into the sentence subject form the object, and comes off more natural.