Anonymous Interview Question

DSA questions medium-hard level ,went ok