LAST ELEMENT PROBLEM-one test case is not passing