Anomali interview question

Write a function that converts a decimal number to binary. How to list all running processes in Linux? Shortly explain the logic behind asymmetric cryptography.