Holmes And Moriarty Problem