Insulet Corporation interview question

In CoderPad, can you write a fake data source that returns different data objects depending on a condition?