function solution(a, b) { let year = new Date(2016, a-1, b); const day = ['SUN','MON','TUE','WED','THU','FRI','SAT']; return day[year.getDay()]; }