Capgemini Interview Question

Share one time you used logic to solve a problem.