This the test method that I\'m using to check if my method works correctly. I know that I must use nested loops but not sure about the implementation of them.