Deloitte interview question

What are an efficient way for a standard coding