The given answer of "a ugly cap" is wrong . Reported 2017-07-21
It should be "an ugly cap" in correct English though, but your report is probably still helpful because I'm sure "an ugly cap" is also not accepted. ;-)
Hiyo ni kofia mbaya, Harry.