You have an array of id’s of posts you have to
print on a user’s screen.
User could see the post of last 3 days and these
3 day’s posts should be randomised.
Then you have to print posts posted between 3-10
day’s and also these are randomised.
Then 10-30 days posts and then all remaining posts.
No repetition of posts on user screen.