Amazon Interview Question

Few math questions that are always changing