Cyz Interview Question

Dsa question medium level..problem solving ability