Two pointer algorithm questions, Free coding practice with solutions