i want to to see the implementation logic behind the function given in the question on leetcode.How can i see that