robber and ski mask problem