Lambda Cut Method In Geeksforgeeks Javascript