I had quiz last week and it says : suppose algorithms A1$A_1$ and A2$A_2$ have worst-case time bound p$p$ and q$q$,respectively respectively. Suppose algorithm A3$A_3$ consists of applying A2$A_2$ to the output of A1$A_1$. (The input for A3$A_3$ is the input for A1$A_1$.) Give a worst-case time bound for A3$A_3$.
How could iI calculate the worst case based on the given info ?