started #20
#20 complete, straightforward answer
changed algo but takes much longer now