Hi,
Starting from user, If sticks picked by user is say 'n' then computer should pick '5-n' sticks. Keep this logic in loop.