Everpure Interview Question

Complete the code for couple of API declarations provided by the interviewer.