Superhuman Interview Question

A two pointer lc question