Paytm Labs Interview Question

LeetCode # 49 answer on leetcode for free