Defining Functions In Leetcode