ABC do ABC interview question

implementation use effect, api call