Pregunta de entrevista de Ceylon Electricity Board

How to code and find bugs?