Jane Street interview question

Design a struct(no padding), with access to fields and indexes.