BYJU'S interview question

Code for a ping pong game