Edited getNote() function

As I have seen every switch option is 10^n, so I have extended yuor function with Math.pow, with this method it should work with every int number without edit the function