Can it be done with 2 pointer?

Question Link : https://www.hackerearth.com/practice/algorithms/searching/binary-search/practice-problems/algorithm/monk-and-special-integer-code-monk/

I am wondering if this question can be done using 2 pointer method . If so , can somebody share the code please ?