Kmart interview question

How to handle different situations and simulations on computer.