Solve four algorithmic coding tasks | Capital One Interview Question