Please check the size constraint


#1

The problem statement specifies that the minimum size of the input would be 2, but test cases contain inputs with size 1. Try and handle the above case too.