IBM Interview Question

use an api to fill data in a table, alternate row colour