Rupeek Interview Question

1. Two pointer and sliding window approach