class Solution { public String solution(int num) { String answer = ""; if(num %2==0){ answer = "Even"; }else{ answer = "Odd"; } return answer; } }
시간복잡도: O(1)