Saturam Interview Question

2 coding problems using preferred language