Queue Reversal In Leetcode Problem