ABC Interview Question

all technical with some logical reasoning