ITP Software interview question

asked logical and coding based on my profile.