Updated explanation for O(..) for Problem 1