Wells Fargo interview question

c program on indexing.