Can someone help me to solve my logical problem... ?