OpenTable interview question

class vs struct, heap vs stack