Trimble Interview Question

How to design something like twitter and a classic algorithmic question involving an array and indexes