Given the following scale:
Mon = 64, Tue = 32, Wed = 16, Thu = 8, Fri = 4, Sat = 2, Sun = 1
How would you create a function that is passed an integer to decode the corresponding days of the week?
For example, say the value 127 was passed, how can you determine what days are included in that value?