Accenture Interview Question

I was given a coding problem and was asked to solve immediately. Found it difficult. But cannot remember the question