How to achieve rounded corners in any shape

I am trying to reproduce the first shape in Photoshop. Please educate me on how to achieve it, because I cannot figure it out by myself. Is it even doable?

I am trying to reproduce the first shape in Photoshop. Please educate me on how to achieve it, because I cannot figure it out by myself. Is it even doable?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.