solution to distinct odd town