a Qt program built to solve Dr-Ahmed Nawar's problem