Paytm interview question

join two table