Array 3 Pointers Interviewbit Solution